package com.group01.community.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group01.community.entity.ZyComplaintSuggest;
import com.group01.community.entity.vo.ZyComplaintSuggestVo;
import com.group01.community.mapper.ZyCommentMapper;
import com.group01.community.mapper.ZyComplaintSuggestMapper;
import com.group01.community.service.ZyComplaintSuggestService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;


import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 投诉建议  服务实现类
 * </p>
 *
 * @author iuoly
 * @since 2022-07-04
 */
@Service
public class ZyComplaintSuggestServiceImpl extends ServiceImpl<ZyComplaintSuggestMapper, ZyComplaintSuggest> implements ZyComplaintSuggestService {

    @Autowired(required = false)
    private ZyComplaintSuggestMapper zyComplaintSuggestMapper;

    @Override
    public IPage<ZyComplaintSuggestVo> getZyComplaintSuggestPage(Long current, Long size, ZyComplaintSuggest zyComplaintSuggest) {
        return zyComplaintSuggestMapper.selectZyComplaintSuggest(new Page<>(current,size) ,zyComplaintSuggest);
    }


}
